import { defineConfig } from 'vite';
import { resolve } from 'path';

export default defineConfig({
  build: {
    lib: {
      entry: resolve(__dirname, 'src/index.ts'),
      name: 'AlooTools',
      fileName: (format) => `aloo-tools.${format}.js`,
    },
    rollupOptions: {
      output: {
        // Global variables to use in the UMD build
        globals: {},
      },
    },
    sourcemap: true,
    // Generate TypeScript declaration files
    emptyOutDir: true,
  },
}); 